package com.hy.erp.inventory.pojo;

import java.io.Serializable ;

import javax.persistence.Column ;
import javax.persistence.Entity ;
import javax.persistence.FetchType ;
import javax.persistence.Id ;
import javax.persistence.ManyToOne ;
import javax.persistence.NamedQuery ;
import javax.persistence.Table ;

import org.hibernate.annotations.Index ;
import org.jboss.seam.annotations.Name ;

import com.hy.erp.inventory.dao.interfaces.ISkillLevelDao;
import com.hy.erp.inventory.pojo.interfaces.IMembereRelation;
import com.hy.erp.inventory.pojo.interfaces.ISkillLevel;
import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;

/**
 * 
 * <ul>
 * <li>开发作者：李冰</li>
 * <li>设计日期：2010-10-6；时间：下午03:07:46</li>
 * <li>类型名称：SkillLevel</li>
 * <li>设计目的：技能水平</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
/*@Entity
@Table(name="skillLevel")
@Name("skillLevel")
@DaoA(ISkillLevelDao.class)
@ NamedQuery ( name = "findSkillLevelByPersonId" , query = "select p.skillLevel from Person p where p.identifier=?")
*/public class SkillLevel extends AbstractPersistentEntity implements ISkillLevel
{

	/**
	 * <ul>
	 * <li>开发作者：李冰</li>
	 * <li>设计日期：2010-10-6；时间：下午03:09:08</li>
	 * <li>字段类型：long；字段名称：serialVersionUID</li>
	 * <li>设计目的：</li>
	 * </ul>
	 * <ul>
	 * <b>修订编号：</b>
	 * <li>修订日期：</li>
	 * <li>修订作者：</li>
	 * <li>修订原因：</li>
	 * <li>修订内容：</li>
	 * </ul>
	 */
	private static final long	serialVersionUID	=
														7489259820972417603L ;


	
	public SkillLevel ( )
	{
		super ( ) ;
	}
	
	@ Column ( name = "name" , length = 50)
	@ Index ( name = "nameIndex" )
	public String getName ( )
	{
		return this.get(ISkillLevel.NAME) ;
	}
	public void setName (
							String name )
	{
		super.set(ISkillLevel.NAME,name) ;
	}
	@ Column ( name = "studyTime" , length = 50)
	@ Index ( name = "studyTimeIndex" )
	public String getStudyTime ( )
	{
		return this.get(ISkillLevel.STUDYTIME) ;
	}
	public void setStudyTime (
								String studyTime )
	{
		super.set(ISkillLevel.STUDYTIME,studyTime) ;
	}
	@ManyToOne(targetEntity=Units.class,fetch=FetchType.LAZY)
	public Units getUnit ( )
	{
		return this.get(ISkillLevel.UNIT) ;
	}
	public void setUnit (
							Units unit )
	{
		super.set(ISkillLevel.UNIT,unit) ;
	}
	@ Column ( name = "person" , length = 50)
	public String getPerson ( )
	{
		return this.get(ISkillLevel.PERSON) ;
	}
	public void setPerson (
							String person )
	{
		super.set(ISkillLevel.PERSON,person) ;
	}
	@ManyToOne(targetEntity=QualificationLevel.class,fetch=FetchType.LAZY)
	public QualificationLevel getQualificationLevel ( )
	{
		return this.get(ISkillLevel.QUALIFICALTIONLEVEL) ;
	}
	public void setQualificationLevel (
										QualificationLevel qualificationLevel )
	{
		super.set(ISkillLevel.QUALIFICALTIONLEVEL,qualificationLevel) ;
	}
	
	
	
	
}
